package chapter91;

public class Phone {

    String name;
    String band;
    double price;
    int saleNum;

    public Phone(){
        System.out.println("无参构造方法被执行");

    }

    public Phone(String n,String b,double p,int s){

        System.out.println("有参构造方法被执行");
        name=n;
        band=b;
        price=p;
        saleNum=s;

    }
    public  void show(){
        System.out.println(name+"dddd");
    }

    public static void main(String[] args) {
//        Phone p1=new Phone();

        Phone p2=new Phone("ss","111",1000.00,100);
    }
}
